package com.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.product.entity.AttrEntity;
import com.gulimall.product.resp.AttrRespVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author DongJiang
 * @email 2272424@qq.com
 * @date 2022-04-20 00:04:16
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(AttrEntity attr);

    PageUtils queryAttrList(Map<String, Object> params, Long catelogId,String attrType);

    void updateAttrGroup(Long attrGroupId, String attrGroupName);

    void updateCategory(Long catId, String name);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrEntity attr);

    void removeAttrByIds(List<Long> asList);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);
}

